<template>
  <div class="all">
    <el-table :data="list">
    <el-table-column align="center" type="index" label="序号"></el-table-column>
    <el-table-column align="center" prop="userName" label="用户名"></el-table-column>
    <el-table-column align="center" prop="nickName" label="昵称"></el-table-column>
    <el-table-column align="center" prop="telephone" label="手机号"></el-table-column>
    <el-table-column align="center" prop="earnBean" label="金币"></el-table-column>
    <el-table-column align="center" label="操作">
      <template slot-scope="scope">
        <el-button type="primary" size="mini" @click="Viewdetails(scope.row)">查看收礼纪录</el-button>
      </template>
    </el-table-column>
      </el-table>
      <div class="Page" v-show="condition.quantity >condition.pageSize">
            <el-pagination
            background
            hide-on-single-page
              @current-change="handleCurrentChange"
              :current-page="condition.pageIndex"
              :page-size="condition.pageSize"
              layout="total, prev, pager, next, jumper"
              :total="condition.quantity">
            </el-pagination>

      </div>
  </div>
</template>

<script>
  import Cookies from 'js-cookie'
  export default{
    data(){
      return{
        list:[],
        condition:{
          pageIndex:1,
          pageSize:15,
          quantity:0,
        },
        admin:{
          adminName:Cookies.get('adminName'),
          token:Cookies.get('token')
        },
      }
    },

  }
</script>

<style>
</style>
